-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update for Chai v4.0 #69
Conversation
Hey @meeber, thank you very much for taking the time to do this! I must admit, I am a bit puzzled by the meaning difference between If I am correct, then I think I will need to add test cases to match the new behavior of Do you know what is the timeframe of v4? That will mean releasing a 2.0.0 version of Regarding breaking changes, do you think chaijs/chai#744 is going to affect this plugin? Summary of what needs to be done for Chai v4All details at chaijs/chai#781.
|
You're correct about One of the goals of Chai going forward is for keywords to have consistent meanings across assertions, so it's important for Not sure about timeframe of official release. I'm guessing mid-to-late January at the earliest. We're planning on dropping support for Node v0.10 and 0.12 as well. Regarding #744: Ah yes, it looks like that PR might impact this plugin too (although it didn't break any tests). Basically, |
Sounds good, and what I gathered, including the combination of both. I have created an issue to support
Great timing for v2 of this plugin then: #74.
Well, that's bad if no tests were broken... |
BREAKING CHANGES: - `.deep.property` renamed to `.nested.property` - `.not.keys` changed to implicitly mean `.not.all.keys` instead of `.not.any.keys`
@astorije I've updated this PR for the release of Chai v4.0. As mentioned before, this does seem like a breaking change for this plugin, so I've updated the |
@astorije Chai 4 has been released. Is there is a plan to release this soon? |
Bump! Any timeline for merging this? |
Are there any pending issues which the community could solve to release Chai v4 compatible version? |
Hey guys, sorry for this awfully long silence! I got very busy with life and other OSS projects, and didn't give enough love to In the meantime, I understand how unacceptable it is for a library one relies on to stale like that, and I do apologize for it. To help ease the pain, I have just released Does this help? Let me know if there is anything short-term I can do if necessary. |
To anyone who needs |
Alright, let's make this happen. I'll merge it as-is, and if there are any issues, I'll address them later. It's been long enough, I don't have any excuses anymore 😅 |
Hey @artursvonda and @myklt, I have just released v2.0.0-rc.2 which hopefully is the last step before full Chai v4 support (finally!). Mind giving it a shot and letting me know if it works as expected for you? |
DO NOT MERGE
Hi @astorije, I'm just going through some Chai plugins to see how much the upcoming Chai v4.0 breaks things (given that it has a number of breaking changes). I noticed one breaking change in this project regarding the
deep.property
assertion being renamed tonested.property
in Chai v4.0. Also, there's a breaking change in Chai'stype-detect
library regarding capitalization which impacts this plugin.This PR does the minimum required to get chai-immutable working in Chai v4.0, but doesn't actually update the chai dev dependency since v4.0 isn't officially released yet (thus the failed Travis build.)
BREAKING CHANGE:
deep.property
renamed tonested.property